net: sched: atm: dont intepret cls results when asked to drop
authorJamal Hadi Salim <jhs@mojatatu.com>
Sun, 1 Jan 2023 21:57:43 +0000 (16:57 -0500)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 21 Jan 2023 14:35:48 +0000 (14:35 +0000)
commit180b889f20ebf952cc9e6a61b11b245dbe507606
tree91306dd84c265b6370334fe0a50faaa877ddfd48
parent38deca478589fca4fbdfb86e479e2a350d1bdf89
net: sched: atm: dont intepret cls results when asked to drop

Origin: https://git.kernel.org/linus/a2965c7be0522eaa18808684b7b82b248515511b
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2023-23455

If asked to drop a packet via TC_ACT_SHOT it is unsafe to assume
res.class contains a valid pointer
Fixes: b0188d4dbe5f ("[NET_SCHED]: sch_atm: Lindent")
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name net-sched-atm-dont-intepret-cls-results-when-asked-t.patch
net/sched/sch_atm.c